/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hiof.moraa.server.service;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.integration.Message;
import org.springframework.integration.MessagingException;
import org.springframework.integration.annotation.ServiceActivator;
import org.springframework.integration.core.MessageHandler;
/**
 *
 * @author Bergy
 */

public class MessageReceiver implements MessageHandler{ 
    /** Logger for this class and subclasses */
    protected final Log logger = LogFactory.getLog(getClass());
    
    @ServiceActivator
    @Override
    public void handleMessage(Message msg) throws MessagingException {
        logger.info(msg.getPayload().toString());
    }
}
